<?php
include("../include/config.inc.php");
include("userlogincheck.php");

$store_name=GetValueByKey(tableprefix."store","member_id",$userid,"store_name");

$id=$_REQUEST["id"];

if(!CheckId($id))
{
	PhpBox("参数错误");
	GotoPage("h");
	exit();
}
$sql="SELECT * FROM ".tableprefix."cashout where userid='$userid' and id='$id'";
$result=$db->query($sql);
$row=$db->fetch_array($result);
$status=$row["status"];
if($temp_status==0){
$temp_status="提现中";
}else{
$temp_status="提现成功";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>提现记录 - 订戏会</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="../css/public.css">
<link rel="stylesheet" type="text/css" href="../css/user.css">
</head>
<body>
<div class="paydetails">
	<div class="paybox">
		<h1>提现金额</h1>
		<span>￥<?php echo $row["amount"];?></span>
	</div>
	<div class="paymain">
		<div>
	商家名称：<?php echo $store_name;?><br>
	<?php echo $row["bank"];?>(尾号<?php echo substr($row["cardno"],-4,5);?>)<br>
	收款人：<?php echo $row["nickname"];?><br>
	提现时间：<?php echo $row["createtime"];?><br>
	状态：<?php echo $temp_status;?>
		</div>
	</div>
</div>
<div class="paybtn"><a href="cashlist.php"><div class="paybox">返回</div></a></div>
</body>
</html>
<?php
$db->free_result($result);
$db->close();
exit;
?>